package com.and9.mchen.mcmusic.dao.factory;

import com.and9.mchen.mcmusic.dao.IStatisticsDao;
import com.and9.mchen.mcmusic.util.EntityHelper;

public class StatisticsDaoFactory {

	private IStatisticsDao statisticsDao = null;
	private static StatisticsDaoFactory instance = new StatisticsDaoFactory();
	
	private  StatisticsDaoFactory(){
		statisticsDao=(IStatisticsDao) EntityHelper.createDaoByProperty("IStatisticsDaoClass");
	}
	public static StatisticsDaoFactory getInstance(){
		return instance;
	}
	public IStatisticsDao getStatisticsDao(){
		return statisticsDao;
	}
	
}
